package com.sg.controller.pbff;

import com.sg.service.biz.pbff.OrgDictionaryService;
import com.sg.dto.biz.pbff.req.*;
import com.sg.dto.biz.pbff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "OrgDictionary", tags = {"OrgDictionary"})
@RestController
// @RequestMapping("/poms/orgDictionary/")
public class OrgDictionaryController {

    @Autowired
    OrgDictionaryService orgDictionaryService;

    /**
     * B1查询任务分类列表(边界)
     * gen by moon at 10/3/2024, 2:26:37 PM
     */
    @PostMapping("/oms/orgDictionary/queryTaskCategoriesListBorder")
    @ApiOperation(value = "B1查询任务分类列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryTaskCategoriesListBorderRespDto> queryTaskCategoriesListBorder(@RequestBody(required = false) @Validated BffQueryTaskCategoriesListBorderReqDto reqDTO) {
        return OkrResult.success(orgDictionaryService.queryTaskCategoriesListBorder(reqDTO));
    }
}
